.PHONY: all alljava run fullscreen clean

JFLAGS=-Xlint

CLASSPATH=Processing/core.jar:Processing/gicentreUtils.jar:Processing/OtpErlang.jar:Processing/fullscreen.jar:src/

JAVAS=$(shell ls src/core1/*.java)

CLASSES=$(shell echo $(JAVAS) | sed 's/\.java/\.class/g')

# all:$(CLASSES)
all: alljava

%.class:%.java
	javac $(JFLAGS) -classpath $(CLASSPATH) $<

alljava:
	javac $(JFLAGS) -classpath $(CLASSPATH) src/core1/*.java

run:
	java -classpath $(CLASSPATH) core1.Main

fullscreen:
	java -classpath $(CLASSPATH) core1.Main --fullscreen

clean:
	rm src/core1/*.class

